package com.bill99.codecheck.sonar.orm.dao.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.bill99.codecheck.sonar.orm.dao.JiraDataDao;
import com.bill99.codecheck.sonar.orm.entity.JiraItem;
import com.bill99.riaframework.common.dto.JiraOnlineDemandDto;
import com.bill99.seashell.orm.ibatis.QueryDaoSupport;

public class JiraDataDaoImpl  extends QueryDaoSupport implements JiraDataDao {

	@Override
	public List<JiraItem> findJiraInfo(String email) {
		// TODO Auto-generated method stub
		return queryForList("jira.findJiraInfo", email);
	}

	@Override
	public List<JiraItem> findJiraTLemail(List<String> projectIdSet,List<String> roleList) {
		// TODO Auto-generated method stub
		Map<String, List<String>> map = new HashMap<String, List<String>>();
		map.put("roleList", roleList);
		map.put("projectIdSet", projectIdSet);
     	return queryForList("jira.findJiraTLemail", map);

	}
	
	public List<JiraOnlineDemandDto> getJiraOnlineDemonByOnLineId(Set<String> onLineSet) {
		List<String> onLineList = new ArrayList<String>(onLineSet);
		return queryForList("jira.getJiraOnlineDemonByOnLineId", onLineList);
	}

	@Override
	public List<String> findJiraProjectId(String projectname) {
		return queryForList("jira.findJiraprojectid", projectname);
	}



}
